package com.example.single;

/**
 * @author houyangfan
 * @version 1.0
 * @date 2022/10/4 22:24
 *
 * 饿汉类型的单例
 */
public class Hungry {

    private final static Hungry hungry = new Hungry();

    public static Hungry getInstance(){
        return hungry;
    }
}
